Carbon


InitPort

Header: Quickdraw.h Carbon status: Supported

Reinitializes the fields of a GrafPort structure that was opened with the OpenPort function, and makes it the current graphics port.

void InitPort (
    GrafPtr port
);
port

A pointer to a GrafPort structure.

DISCUSSION

You should never need to use the InitPort function. The OpenPort function calls the InitPort function, which reinitializes the fields of a basic graphics port and makes it the current port. The InitPort function sets the values of the port’s fields to those listed in the OpenPort function description. The InitPort function does not allocate space for the visible or clipping regions.

AVAILABILITY

Supported in Carbon. Not available in CarbonLib, but available when InterfaceLib 7.1 or later is installed. Exported by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)